To connect your Azure virtual network and your on-premises network via ExpressRoute, you must create a virtual network gateway first. A virtual network gateway serves two purposes: to exchange IP routes between the networks and to route network traffic.
Gateway types
When you create a virtual network gateway, you need to specify several settings. One of the required settings, ‘-GatewayType’, specifies whether the gateway is used for ExpressRoute, or VPN traffic. The two gateway types are:
Each virtual network can have only one virtual network gateway per gateway type. For example, you can have one virtual network gateway that uses -GatewayType VPN, and one that uses -GatewayType ExpressRoute.
In this exercise, you will:
On any Azure Portal page, in Search resources, services and docs, enter virtual network, and then select Virtual networks from the results.
On the Virtual networks page, select +Create.
Important Note:
If the CREATE VIRTUAL NETWORK - TAB menu order is:
“Basics | Security | IP Addressess | Tags | Review + Create”. Use Option 1 instructions.
If the CREATE VIRTUAL NETWORK - TAB menu order is:
“Basics | IP Addressess | Security | Tags | Review + Create”. Scroll down and use Option 2 instructions.
On the Create virtual networks pane, on the Basics tab, use the information in the following table to create the VNet:
Setting | Value |
---|---|
Virtual Network Name | CoreServicesVNet |
Resource Group | ContosoResourceGroup |
Location | East US |
Click Next.
On the Security blade.Click Next.
On the IP addresses blade: In the existing Address space section, select the three dots and click Delete address space
On the IP addresses blade, Click Add an IP address space
On the Add an IP address space blade: Enter the following values
Setting | Value |
---|---|
Address space type | IPv4 |
Starting address | 10.20.0.0 |
Address space size | /16 |
Click Add.
1.Back on the IP addresses blade: In the new address space section. Click Add an subnet
Create a subnet with the following Subnet settings (leave others with their default values):
Setting | Value |
---|---|
Subnet template | Virtual Network Gateway |
Name | GatewaySubnet |
Starting address | 10.20.0.0 |
Subnet size | /27 (32 addresses) |
Click Add
Click Review and Create. Let validation occur, and click Create again to submit your deployment.
On the Create virtual networks pane, on the Basics tab, use the information in the following table to create the VNet:
Setting | Value |
---|---|
Virtual Network Name | CoreServicesVNet |
Resource Group | ContosoResourceGroup |
Location | East US |
Select Next : IP addresses.
On the IP Addresses tab, in IPv4 address space, enter 10.20.0.0/16, and then select + Add subnet.
In the Add subnet pane, use the information in the following table to create the subnet:
Setting | Value |
---|---|
Gateway Subnet name | GatewaySubnet |
Gateway Subnet address space | 10.20.0.0/27 |
And then select Add.
On the Create virtual network page, select Review + Create.
Confirm that the VNet passes the validation and then select Create.
[!Note]
If you are using a dual stack virtual network and plan to use IPv6-based private peering over ExpressRoute, select Add IP6 address space and input IPv6 address range values.
On any Azure Portal page, in Search resources, services and docs (G+/), enter virtual network gateway, and then select Virtual network gateways from the results.
On the Virtual network gateways page, select +Create.
On the Create virtual network gateway page, use the information in the following table to create the gateway:
Setting | Value |
---|---|
Project details | |
Resource Group | ContosoResourceGroup |
Instance details | |
Name | CoreServicesVnetGateway |
Region | East US |
Gateway type | ExpressRoute |
SKU | Standard |
Virtual network | CoreServicesVNet |
Public IP address | |
Public IP address | Create new |
Public IP address name | CoreServicesVnetGateway-IP |
Public IP address SKU | Basic |
Assignment | Not configurable |
Select Review + Create.
Confirm that the Gateway configuration passes validation and then select Create.
When the deployment is complete, select Go to Resource.
[!Note]
it can take up to 45 minutes to deploy a Gateway.
Congratulations! You have successfully created a Virtual network, a gateway subnet, and an ExpressRoute Gateway.
On completion: Do not delete, it is required in the next LAB